<?php

namespace app\admin\controller;

use think\Db;
use think\Request;


class Tonji extends Admin
{


    // 查询用户数量
    public function index()
    {
            $count  = Db::table('hmy_user')->field('count(id)')->select();
//

        return view('admin@tonji/index',['list' => $count]);
    }

    // 查询数据库图片的数量
    public function orders()
    {
        $count  = Db::table('picture')->field('count(id)')->select();


        return view('admin@tonji/detail',['list' => $count]);
    }



}


